const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        note: String,//留言内容
        userId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'User'//用户id
        },
        addTime: Date,//提交日期
        applyId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'UserApply'//用户申请id
        },
        deletedAt: Date,//创建日期
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'tbl_liuyann'});

    return schema;
};
